<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/jsf/template.xhtml">

	<ui:define name="content">
		<h:form prependId="false">
			<p:commandButton image="back" ajax="false" immediate="true" style="margin-right:20px;" value="#{tiersmsgs['navigation.back']}" action="/jsf/tiers/viewTiers.xhtml"/>
		
			<p:panel header="#{tiersmsgs['caractpp.title']} Details" style="margin-top:10px">
				<p:messages />
				<h:panelGrid id="detail" columns="2" styleClass="grid" columnClasses="label,value">
					<h:outputText value="#{tiersmsgs['caractpp.cpptiers.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppTiers}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppsexe.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppSexe}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppqualite.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppQualite}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnompers.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppNomPers}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppprenompers.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppPrenomPers}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnomjeunefille.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppNomJeuneFille}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppdatenaissance.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppDateNaissance}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{tiersmsgs['caractpp.cppcsp.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppCsp}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppregimesocial.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppRegimeSocial}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppcodeprofession.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppCodeProfession}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppsituationfamille.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppSituationFamille}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnombreenfants.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppNombreEnfants}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppnif.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppNif}"/>
					<h:outputText value="#{tiersmsgs['caractpp.cppdatesituation.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppDateSituation}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{tiersmsgs['caractpp.cppdateetatphysique.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppDateEtatPhysique}"  converter="dateConverterForCalendar" />
					<h:outputText value="#{tiersmsgs['caractpp.cppetatphysique.title']}:" />
							<h:outputText value="#{TiersComponent.caractpp.cppEtatPhysique}"/>
         			<h:panelGroup>
         				<p:commandButton image="delete" ajax="false" style="margin-right:20px;" value="#{tiersmsgs['navigation.delete']}" action="#{TiersComponent.deleteTiersCaractPP(TiersComponent.tiers.tieTiers, TiersComponent.caractpp.cppTiers)}"/>
         			</h:panelGroup>
				</h:panelGrid>
			</p:panel>

		</h:form>
	</ui:define>
</ui:composition>